package com.hspedu.enum_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/29
 * @time 15:28
 */
public class Enumration03 {
    public static void main(String[] args) {
        System.out.println(Season3.WINTER);
    }
}

/**
 * 季节的枚举
 */
@SuppressWarnings("all")
enum Season3{

     SPRING("春天","温暖"),WINTER;

    private String name;
    private String desc;

    private Season3() {
    }

    public String getDesc() {
        return desc;
    }

    public String getName() {
        return name;
    }

    private Season3(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }
}